package com.github.bobjoy.java.gc;

public class FinalizedEscapeDemo {

    public static void main(String[] args) throws InterruptedException {

        System.out.println(FinalizedEscape.caseForEscape);

        FinalizedEscape.caseForEscape = new FinalizedEscape();
        System.out.println(FinalizedEscape.caseForEscape);

        FinalizedEscape.caseForEscape=null;

        System.gc();
        Thread.sleep(1000);
        System.out.println(FinalizedEscape.caseForEscape);
    }
}
